import { request } from '@/utils';
import { api } from '@/config';

const {
  goods: {
    skuPageList,
    skuChangeStatus,
    productSyncList,
    productSyncAdd,
  },
  storeShop: {
    subjectList,
  }
} = api;
const fetch = {
  fetchList(data: any) {
    return request({
      url: skuPageList,
      data
    });
  },

  changeStatus(data: any) {
    return request({
      url: skuChangeStatus,
      data,
    });
  },
  
  // 主体列表
  fetchSubjectList(data: any) {
    return request({
      url: subjectList,
      data,
    });
  },
  // 同步列表
  fetchSyncList(data: any) {
    return request({
      url: productSyncList,
      data
    });
  },
  // 同步添加
  fetchSyncAdd(data: any) {
    return request({
      url: productSyncAdd,
      data
    });
  },
};
export default fetch;